import productModule from "@/modules/product";

export default async function getProductBySlug(slug) {
  const product = await productModule.getAllInformationBySlug(slug);
  if (!product) { return null; }
  return product;
}